import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
// <-- NgModel 
import { FormsModule } from '@angular/forms'; 
// <-- 指令
import { CommonModule} from '@angular/common'; 
// 路由Module
import {RouterModule} from '@angular/router';
// 配置路由信息
import{rootRouterConfig} from './../app.router';
// 根模块
import { AppComponent } from './app.component';
// 引入全局公用header组件
import {HeaderContent} from './headerContent';
import { CapacityModule } from './../app/capacityComponents/capacity.module';
import { SomeComponent } from './../app/someComponents/some.component';
import { UserComponent } from './../app/userComponents/user.component';
import { HomeComponent } from './../app/homeComponents/home.component';
import { LoginComponent } from './../app/loginComponents/login.component';
import { RootComponent } from './../app/rootComponents/root.component';
@NgModule({
  declarations: [
    AppComponent,
    SomeComponent,
    UserComponent,
    HomeComponent,
    LoginComponent,
    RootComponent,
    HeaderContent
  ],
  imports: [
    BrowserModule,
    FormsModule,
    CommonModule,
    CapacityModule,
    RouterModule.forRoot(rootRouterConfig)
  ],
  providers: [],
  exports:[HeaderContent],
  bootstrap: [AppComponent]
})
export class AppModule { }
